package controllers;

import negocios.Insumo;

import dados.IBancoInsumos;
import dados.BancoInsumos;

public class InsumosController implements IInsumosController {

	@Override public Insumo consultarInsumo(Insumo insumo) {

        IBancoInsumos ibc = BancoInsumos.getInstance();

		return ibc.consultarInsumo(insumo);
	}

	@Override public void editarInsumo(Insumo insumo) {

        IBancoInsumos ibc = BancoInsumos.getInstance();

        ibc.editarInsumo(insumo);

	}

	@Override public void excluirInsumo(Insumo insumo) {

        IBancoInsumos ibc = BancoInsumos.getInstance();

        ibc.excluirInsumo(insumo);

	}

	@Override public void inserirInsumo(Insumo insumo) {

        IBancoInsumos ibc = BancoInsumos.getInstance();

        ibc.inserirInsumo(insumo);

	}

	@Override public Object[] listarInsumos() {

        IBancoInsumos ibc = BancoInsumos.getInstance();

		return ibc.listarInsumos();
	}

}
